package com.cssw.fyzb.wap.controller;

import com.cssw.fyzb.base.web.domain.AjaxPage;
import com.cssw.fyzb.wap.service.SysMsgService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author
 */
@Api(description = "系统消息相关接口")
@Controller
@RequestMapping("/msg")
public class SysMsgController {

    private static final Logger logger = LoggerFactory.getLogger(TaskController.class);

    @Autowired
    private SysMsgService sysMsgService;

    @ApiOperation("获取系统消息")
    @RequestMapping(value = "/getSysMsg", method = RequestMethod.GET)
    @ResponseBody
    public AjaxPage getSysMsg() {
        return sysMsgService.getSysMsg();
    }
}
